package com.imachen.ymcc.feign;

import com.imachen.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient(contextId = "getUser" , value = "service-user" , fallbackFactory = UserFeignFallbackFactory.class)
public interface UserFeign {

    @RequestMapping(value = "/user/selectOne/{id}",method = RequestMethod.GET)
    JSONResult selectOne(@PathVariable("id") Long id);

}
